package io.coderyeah.ymcc.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author lqs
 * @date 2022/10/20 10:58
 */
@Data
public class RegisterDTO {
    @Pattern(regexp = "^1(3\\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$", message = "手机号格式错误")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "图形验证码不能为空")
    private String imageCode;

    private String regChannel;

    @NotBlank(message = "短信验证码不能为空")
    private String smsCode;

    @NotBlank(message = "图形验证码不能为空")
    private String imageCodeKey;

    // 推荐码
    private String recommendationCode;
}
